package cn.wit.Test;
/**
 * 打印第三个形状
 * @author 16604
 *
 */
public class TestPrintThree {
	public static void main(String[] args) {
		int i;
		int j;
		for(i=0;i<5;i++) {
			for(j=0;j<5;j++) {
				if((i==0||i==4)&&j!=2) {
					System.out.print("."+" ");
				}
				else if((j==0||j==4)&&i!=2){
					System.out.print("."+" ");
				}else {
					System.out.print("*"+" ");
				}
			}
			System.out.println("");
		}
	}

}
